package com.fone.player.client;

import java.util.List;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

/**
 * @author 刘昆 (liukun@100tv.com)
 * @since 2014-04-22
 */

@Root(strict = false)
public class SoftRst extends Rst{

	@Root(strict = false)
	public static class Col {

		/** 栏目名称，如100tv推荐，热门游戏，装机必备 */
		@Element(required = false)
		public String name;

		/** 栏目url */
		@Element(required = false)
		public String url;

		@Element(required = false)
		public Cnts cnts;

		@Element(required = false)
		public Rp rp;

	}

	@Root(strict = false)
	public static class Cnts {

		@ElementList(inline = true, entry = "cnt", required = false)
		public List<Cnt> cntList;

	}

	@Root(strict = false)
	public static class Cnt {
		/** 描述 */
		@Attribute(required = false)
		public String desc;

		/** 小图地址，带时间戳 */
		@Attribute(required = false)
		public String pic2;

		/** 大图地址，带时间戳 */
		@Attribute(required = false)
		public String pic1;

		/** 下载地址 */
		@Attribute(required = false)
		public String url;

		/** 栏目内容关联id */
		@Attribute(required = false)
		public String id;

		/** 关键词 */
		@Attribute(required = false)
		public String kwd;

		/** 内容显示名称 */
		@Attribute(required = false)
		public String name;
	}

	@Root(strict = false)
	public static class Rp {
		/** 下一页url */
		@Attribute(required = false)
		public String nurl;

		/** 总页数 */
		@Attribute(required = false)
		public int m;

		/** 当前页码 */
		@Attribute(required = false)
		public int p;

	}

	/** 服务器地址 */
	@Element(required = false)
	public String host;

	/** 资源服务器地址 */
	@Element(required = false)
	public String shost;

	/** 栏目 */
	@Element(required = false)
	public Col col;

}
